package com.mobilereports.sort;

import java.util.Comparator;

import com.mobilereports.model.Sample;

public class NamesDescendingComparator implements  Comparator<Sample>
{
	public static final String SORT_ORDER_NAME = "Names desc.";

	@Override
	public int compare(Sample object1, Sample object2)
	{
		return -object1.getLabel().compareTo(object2.getLabel());
	}

	@Override
	public String toString()
	{
		return SORT_ORDER_NAME;
	}
}
